<template>
  <div>
       <!-- 头部导航 -->
      <div class="hearder">
        <div class="left iconfont icon-31wode"  @click="$router.push('/userInfo').catch(()=>{})"></div>
        <div class="center">MUSIC-VUE</div>
        <router-link tag="div" to="/search" class="right iconfont icon-sousuo"></router-link>
      </div>
        <!-- 导航按钮 -->
      <div class="navs">
        <router-link tag="div" to="/recommend" class="item">
          <span>推荐</span>
        </router-link>
        <router-link tag="div" to="/rank" class="item">
          <span>排行榜</span>
        </router-link>
        <router-link tag="div" to="/singer" class="item">
          <span>歌手</span>
        </router-link>
      </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less">
.hearder{
  background-color: #D44439;
  color: #fff;
  height: 39px;
  line-height: 39px;
  display: flex;
  text-align: center;
  .left,.right{
     flex:0 0 40px;
     font-size: 18px;
  }

  .center{
    flex:1
  }
}
.navs{
  height: 40px;
  line-height: 40px;
  background-color: #D44439;
  color:#fff;
  display: flex;
  .item{
    flex:1;
    text-align: center;
    font-size: 14px;
    span{
      color: rgb(#E0C7C2);
      display: inline-block;
      height:24px;
      line-height: 24px;
      border-bottom: 1px solid transparent;
    }
    &.router-link-active span{
      color:#fff;
      border-color:#fff;
      font-weight:bold
    }
  }
}
</style>